<?php
/*
 * @Author: zwx
 * @Date: 2024-05-30 12:05:58
 * @LastEditors: zwx
 * @LastEditTime: 2024-10-13 17:36:56
 * @Description: 视频号拉公域订单
 */
declare(strict_types=1);

namespace app\apiadmin\command;

use app\apiadmin\controller\gongyu\GetOrdersFromJST;
use app\apiadmin\controller\gongyu\GetOrdersFromSPH;
use think\console\Command;
use think\console\Input;
use think\console\Output;
use think\facade\Db;
use think\facade\Log;

class shipinhao_getorder extends Command
{

    protected function configure()
    {
        // 命令的名称及用途描述
        $this->setName('shipinhao_getorder')->setDescription('拉取公域订单');
    }

    protected function execute(Input $input, Output $output)
    {
        // 你的后台运行代码
        $output->writeln("shipinhao_getorder");
        // 这里可以放置你的长时间运行的代码

        //拉取正常单
        $sph = new GetOrdersFromSPH();
        try {
            echo $sph->getDingDanFromSPShop() . PHP_EOL;
        } catch (\Throwable $th) {
            echo $th . PHP_EOL;
        }
       

    }





}